package test;
import java.sql.*;
public class getTables{
	public static void main(String arg[]) throws Exception {
		Connection        conn = null;
    ResultSet         rset = null;
    DatabaseMetaData  dsmd = null;

		try {
			Class.forName("cubrid.jdbc.driver.CUBRIDDriver");
			conn = DriverManager.getConnection("jdbc:cubrid:localhost:33000:demodb:::","dba","");
			dsmd = conn.getMetaData();
			rset = dsmd.getTables(null, null, null, null);

			while(rset.next())
				System.out.println(rset.getString("TABLE_NAME"));
	   
		}catch ( SQLException e ) {
			e.printStackTrace();
		}catch ( Exception e ) {
			e.printStackTrace();
		}finally {
			if (rset != null) rset.close();
			if (conn != null) conn.close();
		}
	}
}